package cn.edu.scau.cmi.zhuangyi.adapter;

import java.util.*;

public class ObjectAdapter implements Target{
	private SortUtil sortutil;
	
	public ObjectAdapter(){}
	
	public ObjectAdapter(SortUtil sortutil){
		this.sortutil = sortutil;
	}
	
	public SortUtil getAdaptee(){
		return sortutil;
	}
	
	public void setAdaptee(SortUtil sortutil){
		this.sortutil = sortutil;
	}
	
	@Override
	public List sortAll(List<Integer> numberList){
		List<Integer> studentList = sortutil.sortInt(numberList);
		return studentList;
	}
}
